﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace IotClientApp.Server.Entity
{
    public class Point
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        /// <summary>
        /// 设备Id
        /// </summary>
        [Comment("设备Id")]
        [Required]
        public string DeviceId { get; set; }
        public string Name { get; set; }
        public string Method { get; set; }
        public int Address { get; set; }
        public short DataType { get; set; }
        public short? EndianType { get; set; }
        public DateTime CreateTime { get; set; }
        public string? Expressions { get; set; }
        public string? ReadWrite { get; set; }
        public string? Desc { get; set; }
    }
}
